package routers

import (
	"github.com/gin-gonic/gin"
	"my-gin-tiktok/app/controllers"
	"my-gin-tiktok/app/middlewares"
)

func InitVideoRouter(router *gin.RouterGroup) {
	video := router.Group("video")
	video.Use(middlewares.JWTAuthMiddleware())
	video.POST("/upload", controllers.Upload)
	video.POST("/down", controllers.Down)
	video.GET("/list", controllers.VideoList)
	video.GET("/detail/:id", controllers.VideoDetail)
	return
}
